package jdk5.generic;

import java.util.Collection;
import java.util.List;
import java.util.ArrayList;
import java.util.Vector;
import static java.lang.System.out;

public class WildcardsGenerics {
	static void printCollection(Collection<?> c) {
		for (Object o : c)
			out.println(o);
	}
	
	/*static void printCollection(Collection<Object> objList) {
		for (Object o : objList)
			out.println(o);
	}*/

	public static void main(String... args) {
		List<Object> li = new ArrayList<Object>(10);
		printCollection(li);
		Collection<String> cs = new Vector<String>();
		printCollection(cs);
	}
}